<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div class="time" id="t"></div>
    <script>
        // var intRnd=10+Math.random()*(100-10+1)
        // console.log(intRnd)
        // console.log(Math.floor(intRnd),Math.ceil(intRnd))
        // console.log(Math.round(intRnd))
        var dt=new Date()
        var y=dt.getFullYear()
        var m=dt.getMonth()+1
        var d=dt.getDate()
        var h=dt.getHours()
        var s=dt.getSeconds()
        var mi=dt.getMinutes()
        document.getElementById('t').innerText=y+'年'+m+'月'+d+'日'+h+'小时'+mi+'分'+s+'秒'
    </script>
</body>
</html>